package ace.module.account.core.impl.dao.repository;

import ace.cmp.spring.data.jdbc.querydsl.core.repository.QuerydslJdbcBaseRepository;
import ace.module.account.core.impl.constant.AccountCoreConstant;
import ace.module.account.core.impl.dao.entity.IamApplicationOauth2Client;
import com.baomidou.dynamic.datasource.annotation.DS;
import org.springframework.stereotype.Repository;

/**
 * 账户应用与oauth2客户端关系 repository.
 *
 * @author Caspar
 */
@DS(AccountCoreConstant.DEFAULT_DATA_SOURCE_NAME)
@Repository
public interface IamApplicationOauth2ClientRepository extends QuerydslJdbcBaseRepository<IamApplicationOauth2Client, Long> {

  IamApplicationOauth2Client getByIdOfClientIdAndDeleteFlagIsFalse(String idOfClientId, Long deleteFlagNot);
}